home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / rhythmbox.postinst < prev    next >
Encoding:
Text File  |  2009-04-07  |  1.9 KB  |  59 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # version 0.9.4.1-1 started shipping /var/lib/scrollkeeper erroneously, hence
  6. # the database was overwritten and needs a full rebuild
  7. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" ge "0.9.4.1-1" && dpkg --compare-versions "$2" lt "0.9.4.1-5" && which scrollkeeper-rebuilddb >/dev/null 2>&1; then
  8.     echo "Upgrade from broken Rhythmbox version detected, running scrollkeeper-rebuilddb..."
  9.     scrollkeeper-rebuilddb -q
  10. fi
  11.  
  12. # Automatically added by dh_installmenu
  13. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  14.     update-menus
  15. fi
  16. # End automatically added section
  17. # Automatically added by dh_installmime
  18. if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
  19.     update-mime
  20. fi
  21. # End automatically added section
  22. # Automatically added by dh_scrollkeeper
  23. if [ "$1" = "configure" ] && which scrollkeeper-update >/dev/null 2>&1; then
  24.     scrollkeeper-update -q
  25. fi
  26. # End automatically added section
  27. # Automatically added by dh_gconf
  28. if [ "$1" = "configure" ] && which update-gconf-defaults >/dev/null 2>&1; then
  29.     update-gconf-defaults
  30. fi
  31. # End automatically added section
  32. # Automatically added by dh_gconf
  33. if [ "$1" = "configure" ]; then
  34.     gconf-schemas --register rhythmbox.schemas 
  35. fi
  36. # End automatically added section
  37. # Automatically added by dh_desktop
  38. if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
  39.     update-desktop-database -q
  40. fi
  41. # End automatically added section
  42. # Automatically added by dh_icons
  43. if which update-icon-caches >/dev/null 2>&1 ; then
  44.     update-icon-caches /usr/share/icons/hicolor
  45. fi
  46. # End automatically added section
  47. # Automatically added by dh_pysupport
  48. if which update-python-modules >/dev/null 2>&1; then
  49.     update-python-modules  rhythmbox.dirs
  50. fi
  51. # End automatically added section
  52. # Automatically added by dh_makeshlibs
  53. if [ "$1" = "configure" ]; then
  54.     ldconfig
  55. fi
  56. # End automatically added section
  57.  
  58.  
  59.